
package com.jyg.common.result;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 橘白
 */
@Getter
@AllArgsConstructor
public enum ResultEnum {

    SUCCESS(true, "00000" , "成功"),


    HINT(false, "A0001" , "错误提示"),
    FORM(false, "A1001" , "表单验证未通过"),

    FAILED(false, "B0001" , "未知异常，请联系管理员"),
    NULL_POINTER(false, "B0002" , "NULL_POINTER"),

    DEBUG(false, "D0001" , "打印debug日志的错误信息"),


    NULL(false, "Z0001" , "?");

    /**
     * 是否成功
     */
    private boolean success;
    /**
     * 错误码
     */
    private String code;
    /**
     * 错误信息
     */
    private String msg;

}
